-- GENERATED SPELL FOR [Risen Drakkari Death Knight] --


function spell0_26830(pUnit, Event) --@Deafening Roar,Self--
pUnit:FullCastSpellOnTarget(49721,pUnit)
pUnit:RegisterEvent('Sorts_26830', 2342, 1)
end

function spell1_26830(pUnit, Event) --@Deafening Roar,Self--
pUnit:FullCastSpellOnTarget(59010,pUnit)
pUnit:RegisterEvent('Sorts_26830', 2343, 1)
end

function spell2_26830(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(51240,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26830', 7500, 1)
end

function spell3_26830(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(49723,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26830', 8276, 1)
end

function spell4_26830(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(59011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26830', 8336, 1)
end

function Sorts_26830(pUnit, Event)
local choix_sorts_26830 = math.random(0, 4)
if choix_sorts_26830 == 0 then
pUnit:RegisterEvent('spell0_26830', 1, 1)
end
if choix_sorts_26830 == 1 then
pUnit:RegisterEvent('spell1_26830', 1, 1)
end
if choix_sorts_26830 == 2 then
pUnit:RegisterEvent('spell2_26830', 1, 1)
end
if choix_sorts_26830 == 3 then
pUnit:RegisterEvent('spell3_26830', 1, 1)
end
if choix_sorts_26830 == 4 then
pUnit:RegisterEvent('spell4_26830', 1, 1)
end
end

function mob26830_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26830', math.random(1500, 3000), 1)
end

function mob26830_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26830_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26830_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26830, 1, 'mob26830_Action')
RegisterUnitEvent(26830, 2, 'mob26830_Leave')
RegisterUnitEvent(26830, 3, 'mob26830_Kill')
RegisterUnitEvent(26830, 4, 'mob26830_Die')
